package com.a2j.beans.car.type;

import com.a2j.beans.base.IBasePage;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Author: bzb
 * Data: 2022/1/18 22:37
 * Desc: 车型分页业务对象
 */
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "车型分页及其他属性")
public class CarTypePageBO extends IBasePage {

    // 额外查询入参(根据车系id,查询车型列表)
    @ApiModelProperty(value = "车系id", required = true)
    private Integer seriesId;

    @ApiModelProperty(value = "品牌名称")
    private String  brandName;
    @ApiModelProperty(value = "子品牌名称")
    private String  subBrandName;
    @ApiModelProperty(value = "车系名称")
    private String  seriesName;
    @ApiModelProperty(value = "车型名称")
    private String  typeName;
    @ApiModelProperty(value = "车规id")
    private Integer specificationId;
    @ApiModelProperty(value = "开关")
    private Integer enable;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "GM+8")
    @DateTimeFormat(pattern = "YYYY-MM-dd HH:mm:ss") // 处理web端提交参数的bug
    private Date createTime;

    @ApiModelProperty(value = "规格类型")
    private String sizeType;// 规格类型
    @ApiModelProperty(value = "生产年份")
    private String yearType;// 生产年份
    @ApiModelProperty(value = "销售状态")
    private String saleState;// 销售状态
    @ApiModelProperty(value = "排放标准")
    private String effluentStandard;// 排放标准
    @ApiModelProperty(value = "指导价(文本型,万)")
    private String priceStr;// 指导价(文本型,万)
}
